package com.zhang.modules.mianShi.entity;

import com.zhang.common.jpa.entity.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
@Entity(name = "AppSystem")
@Table(name = "app_system")
public class AppSystem extends BaseEntity {

    @Size(max = 255)
    @NotNull
    @Column(name = "system_code", nullable = false)
    private String systemCode;

    @Size(max = 255)
    @NotNull
    @Column(name = "system_name", nullable = false)
    private String systemName;

    @Size(max = 255)
    @NotNull
    @Column(name = "system_kss", nullable = false)
    private String systemKss;

    @NotNull
    @Column(name = "is_default", nullable = false)
    private Boolean isDefault = false;

    @Size(max = 255)
    @Column(name = "master_code")
    private String masterCode;

    @Size(max = 255)
    @NotNull
    @Column(name = "region_id", nullable = false)
    private String regionId;

}